package com.zjs.jsp.axd.web;

import com.zjs.jsp.domain.stats.OrderStatus;
import com.zjs.jsp.domain.stats.StatusRoot;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 李文
 * @create 2018-07-24 16:56
 **/
@RestController
public class EdiOrderStatusApiController
{

    private static final Logger LOGGER = LoggerFactory.getLogger(EdiOrderStatusApiController.class);

    @PostMapping("/OrderStatus")
    public StatusRoot statusApi(@RequestBody OrderStatus s) {

        LOGGER.info("{} 接受到的数据是 {} ", s.getId(), s);
        StatusRoot root = new StatusRoot();
        root.setStatus("Y");
        return root;
    }

}
